import request from '@/utils/request'

// 查询协议列列表
export function listAgreement(query) {
  return request({
    url: '/model/agreement/list',
    method: 'get',
    params: query
  })
}

// 查询协议列详细
export function getAgreement(id) {
  return request({
    url: '/model/agreement/' + id,
    method: 'get'
  })
}

// 新增协议列
export function addAgreement(data) {
  return request({
    url: '/model/agreement',
    method: 'post',
    data: data
  })
}

// 修改协议列
export function updateAgreement(data) {
  return request({
    url: '/model/agreement',
    method: 'put',
    data: data
  })
}

// 删除协议列
export function delAgreement(id) {
  return request({
    url: '/model/agreement/' + id,
    method: 'delete'
  })
}

// 导出协议列
export function exportAgreement(query) {
  return request({
    url: '/model/agreement/export',
    method: 'get',
    params: query
  })
}
// 支付记录
export function listupayList(data) {
  return request({
    url: '/model/payRecord/list',
    method: 'post',
    data: data
  })
}
// 审核
export function payRecordauth(data) {
  return request({
    url: '/model/payRecord/auth',
    method: 'post',
    data: data
  })
}
